// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
DEFINE OBJECTS 2
DEFINE OBJECT SANNY BUILDER 3.04      
DEFINE OBJECT WAREHOUSE_DOOR1          // Object number -1

DEFINE MISSIONS 1
DEFINE MISSION 0 AT @MISSN_17         

DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA script

DEFINE UNKNOWN_EMPTY_SEGMENT 0

DEFINE UNKNOWN_THREADS_MEMORY 500

{$VERSION 3.1.0027}

//-------------MAIN---------------
thread 'MAIN' 
fade 0 0 
01F0: set_max_wanted_level_to 6 
set_wb_check_to 0 
00C0: set_current_time_hours_to 8 minutes_to 0 
023C: load_special_actor 'TENPEN' as 1 // models 290-299 
04E4: unknown_refresh_game_renderer_at 2115.0972 1915.627
Camera.SetAtPos(2115.0972, 1915.627, 10.8203)
$PLAYER_CHAR = Player.Create(#NULL, 1594.8778, 2662.8831, 10.8203)
Player.Build($PLAYER_CHAR)
09C7: change_player $PLAYER_CHAR model_to #SPECIAL01 
$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)
07AF: $PLAYER_GROUP = player $PLAYER_CHAR group 
set_weather 1 
wait 0 
Player.CanMove($PLAYER_CHAR) = False
select_interior 0 
0629: change_integer_stat 181 to 4 
062A: change_float_stat 165 to 800.0 
062A: change_float_stat 23 to 150.0 
062A: change_float_stat 21 to 200.0 
062A: change_float_stat 160 to 150.0 
0629: change_integer_stat 68 to 10 
016C: restart_if_wasted_at 1594.8778 2662.8831 10.8203 angle 0.0 town_number 0 
016D: restart_if_busted_at 1594.8778 2662.8831 10.8203 angle 0.0 town_number 0 
0180: set_on_mission_flag_to $ONMISSION // Note: your missions have to use the variable defined here 
$DEFAULT_WAIT_TIME = 250 
03E6: remove_text_box 
$ONMISSION = 0 
$CRASH_MARKER = Marker.CreateIconAndSphere(16, 1599.8119, 2672.2493, 10.8274)
Player.CanMove($PLAYER_CHAR) = True
fade 1 500 
wait 1000 
Player.CanMove($PLAYER_CHAR) = True
Camera.Restore_WithJumpCut
Camera.SetBehindPlayer


:MAIN_321
wait $DEFAULT_WAIT_TIME 
00BF: $Time_Hours = current_time_hours, $Time_Mins = current_time_minutes 
if and
  $ONMISSION == 0 
00ED:   actor $PLAYER_ACTOR 0 near_point 1599.8119 2672.2493 radius 1.0 1.0 on_foot 
jf @MAIN_388 
Marker.Disable($CRASH_MARKER)
start_mission 0 

:MAIN_388
jump @MAIN_321 

:MISSN_17
03A4: name_thread 'MISSN_17'
$ONMISSION = 1
0050: gosub @MISSN_17_Begin
00D6: if
0112:   wasted_or_busted
004D: jump_if_false @MISSN_17_End
0050: gosub @MISSN_17_Failed

:MISSN_17_End
0050: gosub @MISSN_17_Cleanup
004E: end_thread

:MISSN_17_Begin
fade 0 0
:MISSN_17_Fade1
wait 0
if 
not fading
jf @MISSN_17_Fade1

Model.Load(#COPCARLA)
Model.Load(#DESERT_EAGLE)
Model.Load(#COLT45)
038B: load_requested_models 

:MISSN_17_Models
wait 0
if and
Model.Available(#COPCARLA)
Model.Available(#DESERT_EAGLE)
Model.Available(#COLT45)
jf @MISSN_17_Models 

0674: set_car_model #COPCARLA numberplate "_CRASH_"
200@ = Car.Create(#COPCARLA, 1599.8119, 2672.2493, 10.8274)
Car.SetImmunities(200@, 0, 1, 0, 0, 0) 
Car.Angle(200@) = 90.0                    //Headed West
Car.DoorStatus(200@, 0)                   //No locked doors
053F: set_car 200@ tires_vulnerability 0  //No popped tries
072A: put_actor $PLAYER_ACTOR into_car 200@ driverseat 
018A: 40@ = create_checkpoint_at 1038.3573 -1339.5293 13.7266
$7234 = 240000

fade 1 1500
:MISSN_17_Fade2
wait 0
if 
not fading
jf @MISSN_17_Fade2
02A3: enable_widescreen true

03CF: load_wav 44435 as 1 
gosub @MISSN_17_PLAYSND

014E: set_timer_to $7234 type 1 
0890: enable_sound_when_timer $7234 reach 10 seconds
Player.WantedLevel($PLAYER_CHAR) = 2
02A3: enable_widescreen false

:MISSN_17_LOOP1
wait 0

if 
Actor.DrivingPlane($PLAYER_ACTOR)
then
Player.WantedLevel($PLAYER_CHAR) = 5
end

if
$7234 < 1 
then
jump @MISSN_17_Failed 
end

if                                            
00FE:   actor $PLAYER_ACTOR sphere 1 in_sphere 1038.3573 -1339.5293 13.7266 radius 1.0 1.0 1.0 
jf @MISSN_17_LOOP1

fade 0 1500
:MISSN_17_Fade3
wait 0
if 
not fading
jf @MISSN_17_Fade3
if
Actor.Driving($PLAYER_ACTOR)
then
0633: AS_actor $PLAYER_ACTOR exit_car 
end

:MISSN_17_CAR
wait 0
if
not Actor.Driving($PLAYER_ACTOR)                      
jf @MISSN_17_CAR
02A3: enable_widescreen true

Actor.PutAt($PLAYER_ACTOR,1176.5, -1323.0 14.0)
Actor.Angle($PLAYER_ACTOR) = 0.0
0110: clear_player $PLAYER_CHAR wanted_level 
067C: put_camera_on_actor $PLAYER_ACTOR with_offset -111.5 25.0 24.0 rotation -120.0 0.0 15.0 0.0 2 
                                                    
fade 1 1500
:MISSN_17_Fade4
wait 0
if 
not fading
jf @MISSN_17_Fade4
wait 3000

020C: create_explosion_with_radius 6 at 1038.2 -1339.6 13.7266
wait 50
020C: create_explosion_with_radius 6 at 1048.2 -1339.6 13.7266
wait 50
020C: create_explosion_with_radius 6 at 1058.2 -1339.6 13.7266
wait 50
020C: create_explosion_with_radius 6 at 1028.2 -1339.6 13.7266
wait 50
020C: create_explosion_with_radius 6 at 1038.2 -1349.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1048.2 -1349.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1058.2 -1349.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1028.2 -1349.6 13.7266
wait 50
020C: create_explosion_with_radius 6 at 1038.2 -1329.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1048.2 -1329.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1058.2 -1329.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1028.2 -1329.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1038.2 -1359.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1048.2 -1359.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1058.2 -1359.6 13.7266
wait 50                                       
020C: create_explosion_with_radius 6 at 1028.2 -1359.6 13.7266
wait 50
020C: create_explosion_with_radius 6 at 1038.2 -1339.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1048.2 -1339.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1058.2 -1339.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1028.2 -1339.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1038.2 -1349.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1048.2 -1349.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1058.2 -1349.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1028.2 -1349.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1038.2 -1329.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1048.2 -1329.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1058.2 -1329.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1028.2 -1329.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1038.2 -1359.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1048.2 -1359.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1058.2 -1359.6 28.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1028.2 -1359.6 28.7266
wait 50
020C: create_explosion_with_radius 6 at 1038.2 -1339.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1048.2 -1339.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1058.2 -1339.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1028.2 -1339.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1038.2 -1349.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1048.2 -1349.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1058.2 -1349.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1028.2 -1349.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1038.2 -1329.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1048.2 -1329.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1058.2 -1329.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1028.2 -1329.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1038.2 -1359.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1048.2 -1359.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1058.2 -1359.6 43.7266
wait 50                                               
020C: create_explosion_with_radius 6 at 1028.2 -1359.6 43.7266
wait 2500 
02A3: enable_widescreen false
0051: return

:MISSN_17_PLAYSND
wait 0
if 
03D0:   wav 1 loaded 
jf @MISSN_17_PLAYSND
03D1: play_wav 1 
:MISSN_17_PLAYING
wait 0
if 
03D2:   wav 1 ended 
jf @MISSN_17_PLAYING
040D: unload_wav 1 
return

:MISSN_17_Failed
00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1 
0051: return

:MISSN_17_Cleanup
Marker.Disable(40@)
014F: stop_timer $7234 
0004: $ONMISSION = 0
00D8: mission_cleanup
0051: return
